﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class admin_chitietthongkechhuongtrinh : System.Web.UI.UserControl
{
    private string _name;
    public string Name
    {
        get { return _name; }
        set { _name = value; }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        string maloaict = Page.Items["Name"].ToString();
        var ct = ChuongTrinh.GetCtByLoaiCt(Convert.ToInt32(maloaict));
        if (ct != null)
        {
            gv_chuongTrinh.DataSource = ct;
            gv_chuongTrinh.DataBind();
        }
        Label1.Text = maloaict;
    }

}